<template>
  <div class="rate-content">
    <titleHead :title="'线上渠道'" />
    <el-col :span="12" style="padding: 2rem 1rem">
      <dv-scroll-board :config="config" :height="'50rem'" />
      <dv-scroll-board :config="config" :height="'50rem'" />
    </el-col>
    <el-col :span="12" style="padding: 2rem 1rem">
      <titleCard />
      <lineAndBar :height="'20rem'" />
      <Echart
        :options="options"
        :id="'bottomLeftChart' + Math.random()"
        :height="'20rem'"
        width="100%"
      ></Echart>
    </el-col>
  </div>
</template>

<script>
//import CenterChart from '@/components/echart/center/centerChartRate'
//import centerRight2Chart1 from "@/components/echart/centerRight/centerRightChart";
import Echart from "@/common/echart";
let keywords = [
 
  { name: "青春", value: 8.04 },
  { name: "网红", value: 5.87 },
  { name: "萌", value: 6.97 },
  { name: "认真", value: 2.53 },
  { name: "古典", value: 2.49 },
  { name: "温柔", value: 3.91 },
  { name: "有个性", value: 3.25 },
  { name: "可爱", value: 9.93 },
  { name: "幽默诙谐", value: 3.65 },
];
export default {
  data() {
    return {
      config: {
        rowNum: 10,
        headerBGC: "#082449",
        header: ["排名", "区县", "合计税收收入", "同比"],
        columnWidth: [50],
        data: [
          ["1", "甘州区", "2015", "5%"],
          ["2", "甘州区", "2015", "5%"],
          ["3", "甘州区", "2015", "5%"],
          ["4", "甘州区", "2015", "5%"],
          ["5", "甘州区", "2015", "5%"],
          ["6", "甘州区", "2015", "5%"],
        ],
      },
      options: {
        series: [
          {
            type: "wordCloud",
            sizeRange: [15, 80],
            rotationRange: [0, 0],
            rotationStep: 45,
            gridSize: 8,
            shape: "pentagon",
            width: "100%",
            height: "100%",
            textStyle: {
              normal: {
                color: function () {
                  return (
                    "rgb(" +
                    [
                      Math.round(Math.random() * 160),
                      Math.round(Math.random() * 160),
                      Math.round(Math.random() * 160),
                    ].join(",") +
                    ")"
                  );
                },
              },
            },
            data: keywords,
          },
        ],
      },
    };
  },
  components: { Echart },
};
</script>

<style lang="scss" scoped>
#center {
  display: flex;
  flex-direction: column;
  .up {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    .item {
      border-radius: 6px;
      padding-top: 8px;
      margin-top: 8px;
      width: 32%;
      height: 70px;
      .dv-dig-flop {
        width: 150px;
        height: 30px;
      }
    }
  }
  .down {
    padding: 6px 4px;
    padding-bottom: 0;
    width: 100%;
    display: flex;
    height: 255px;
    justify-content: space-between;
    .bg-color-black {
      border-radius: 5px;
    }
    .ranking {
      width: 59%;
      .dv-scr-rank-board {
        height: 225px;
      }
    }
    .percent {
      width: 40%;
      display: flex;
      flex-wrap: wrap;
      .item {
        width: 50%;
        height: 120px;
        span {
          margin-top: 8px;
          font-size: 14px;
          display: flex;
          justify-content: center;
        }
      }
      .water {
        width: 100%;
        .dv-wa-le-po {
          height: 120px;
        }
      }
    }
  }
}
</style>
